import { createStore } from 'vuex';

import tabBar from '@/utils/tabbar.js';

export default createStore({
    state: {
        token: '',
        tabBarList: [],
        toRankList: false,
        isSupplier: true
    },
    mutations: {
        setTabBarList(state, data) {
            state.tabBarList = tabBar[data]
        },
        switchToRankList(state, data) {
            state.toRankList = data
        },
        setIsSupplier(state, data) {
            state.isSupplier = data
        }
    }
})
